/**
 * Copyright (C) T-Systems International, 2013-2014
 *
 * The copyright of the computer program herein is the property of
 * T-Systems International. The program may be used and/or copied
 * only with the written permission of T-Systems International or in
 * accordance with the terms and conditions stipulated in the
 * agreement/contract under which the program has been supplied.
 *
 * $Author$
 * $Date$
 * $Rev$
 */
package com.tsystems.migdb.sftp.server;

import org.apache.sshd.SshServer;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class Server {

    public static void main(String [] args) throws IOException {
        ApplicationContext context = new ClassPathXmlApplicationContext("sftp-server-config.xml");
        SshServer sshd = context.getBean("server", SshServer.class);
        sshd.start();
    }

}